package shopping.order.domain;

import java.io.Serializable;

public class OrderVO implements Serializable {
	private int orderNum;
	private String orderName;
	private String orderDate;
	
	public OrderVO(int orderNum, String orderName, String orderDate) {
		super();
		this.orderNum = orderNum;
		this.orderName = orderName;
		this.orderDate = orderDate;
	}
	
	public OrderVO() {

	}

	public int getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(int orderNum) {
		this.orderNum = orderNum;
	}

	public String getOrderName() {
		return orderName;
	}

	public void setOrderName(String orderName) {
		this.orderName = orderName;
	}

	public String getOrderDate() {
		return orderDate;
	}

	public void setOrderDate(String orderDate) {
		this.orderDate = orderDate;
	}

	@Override
	public String toString() {
		return "OrderVO [orderNum=" + orderNum + ", orderName=" + orderName
				+ ", orderDate=" + orderDate + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((orderDate == null) ? 0 : orderDate.hashCode());
		result = prime * result
				+ ((orderName == null) ? 0 : orderName.hashCode());
		result = prime * result + orderNum;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		OrderVO other = (OrderVO) obj;
		if (orderDate == null) {
			if (other.orderDate != null)
				return false;
		} else if (!orderDate.equals(other.orderDate))
			return false;
		if (orderName == null) {
			if (other.orderName != null)
				return false;
		} else if (!orderName.equals(other.orderName))
			return false;
		if (orderNum != other.orderNum)
			return false;
		return true;
	}

	
}
